package com.common.converter;

import com.common.entity.evaluate.CheckEvaluateEntity;
import com.common.entity.standvalue.StandValueEntity;
import com.common.excel.excelinfo.CheckEvaluateExcelInfo;
import com.common.requestvo.evaluate.CheckEvaluateReqVo;
import com.common.requestvo.standvalue.StandValueReqVo;
import com.common.vo.evaluate.CheckEvaluateVo;
import com.common.vo.standvalue.StandValueVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

/**
 * @author johnny
 * @create 2020-07-13 下午5:04
 **/
@Mapper
public interface StandValueConverter {

    StandValueConverter INSTANCE = Mappers.getMapper(StandValueConverter.class);


    @Mappings({
            @Mapping(source = "createTime", target = "createTime", dateFormat = "yyyy-MM-dd HH:mm:ss"),
            @Mapping(source = "updateTime", target = "updateTime", dateFormat = "yyyy-MM-dd HH:mm:ss"),
    })
    StandValueVo domain2vo(StandValueEntity standValueEntity);

    @Mappings({
            @Mapping(source = "createTime", target = "createTime", dateFormat = "yyyy-MM-dd HH:mm:ss"),
            @Mapping(source = "updateTime", target = "updateTime", dateFormat = "yyyy-MM-dd HH:mm:ss"),
    })
    StandValueEntity vo2domain(StandValueReqVo standValueReqVo);

}